rt_border.dart 532 B

1234567891011121314151617181920212223242526
  1. import 'package:fis_lib_report/report/rt_color.dart';
  2. enum RTBorderStyle {
  3. None,
  4. Solid,
  5. Dash,
  6. Dot,
  7. DashDot,
  8. DashDotDot,
  9. Double,
  10. }
  11. class RTBorder {
  12. RTBorderStyle borderStyle = RTBorderStyle.Solid;
  13. RTColor color = RTColor.Black;
  14. double thickness = 1;
  15. RTBorder();
  16. RTBorder.fromJson(Map<String, dynamic> json) {
  17. borderStyle = RTBorderStyle.values
  18. .firstWhere((element) => element.name == json['BorderStyle']);
  19. color = RTColor.fromJson(json['Color']);
  20. thickness = json['Thickness'];
  21. }
  22. }