1234567891011121314151617181920212223242526 |
- import 'package:fis_lib_report/report/rt_color.dart';
- enum RTBorderStyle {
- None,
- Solid,
- Dash,
- Dot,
- DashDot,
- DashDotDot,
- Double,
- }
- class RTBorder {
- RTBorderStyle borderStyle = RTBorderStyle.Solid;
- RTColor color = RTColor.Black;
- double thickness = 1;
- RTBorder();
- RTBorder.fromJson(Map<String, dynamic> json) {
- borderStyle = RTBorderStyle.values
- .firstWhere((element) => element.name == json['BorderStyle']);
- color = RTColor.fromJson(json['Color']);
- thickness = json['Thickness'];
- }
- }
|