inputImageList.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:fis_lib_report/report/element.dart';
  2. import 'package:fis_lib_report/report/interfaces/block_element.dart';
  3. import 'package:fis_lib_report/report/interfaces/element.dart';
  4. import 'package:fis_lib_report/report/interfaces/inputImageList.dart';
  5. class InputImageList extends Element
  6. implements IBlockElement, IInputImageListElement {
  7. @override
  8. int? column;
  9. @override
  10. List<IElement>? elements;
  11. @override
  12. bool? hasGap;
  13. @override
  14. bool? hasImageBorder;
  15. @override
  16. bool? transparentBackground;
  17. double? imageWidth;
  18. double? imageHeight;
  19. bool? isReadOnly;
  20. InputImageList.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
  21. column = json['Column'];
  22. hasGap = json['HasGap'];
  23. hasImageBorder = json['HasImageBorder'];
  24. transparentBackground = json['TransparentBackground'];
  25. imageWidth = json['ImageWidth'];
  26. imageHeight = json['ImageHeight'];
  27. isReadOnly = json['IsReadOnly'];
  28. List<dynamic> jsonElements = json['Elements'];
  29. if (jsonElements.isNotEmpty) {
  30. //TODO(Loki):init elements
  31. }
  32. }
  33. }