line.dart 698 B

1234567891011121314151617181920212223242526
  1. import 'package:fis_lib_report/report/interfaces/line.dart';
  2. import 'package:fis_lib_report/report/rt_border.dart';
  3. import 'package:fis_lib_report/report/rt_color.dart';
  4. import 'package:fis_lib_report/report/shape.dart';
  5. class Line extends Shape implements ILine {
  6. @override
  7. RTColor? stroke;
  8. @override
  9. double? thickness;
  10. @override
  11. RTBorderStyle? borderStyle;
  12. @override
  13. double? width;
  14. Line.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
  15. stroke = RTColor.fromJson(json['Stroke']);
  16. width = json['Width'];
  17. thickness = json['Thickness'];
  18. borderStyle = RTBorderStyle.values
  19. .firstWhere((element) => element.name == json['BorderStyle']);
  20. }
  21. }