Line data Source code
1 : part of apptive_grid_model; 2 : 3 : /// Model for a [FormComponent] representing [DecimalDataEntity] 4 : class DecimalFormComponent extends FormComponent<DecimalDataEntity> { 5 : /// Creates a FormComponent 6 2 : DecimalFormComponent({ 7 : required this.property, 8 : required this.data, 9 : required this.fieldId, 10 : this.options = const TextComponentOptions(), 11 : this.required = false, 12 : }); 13 : 14 : /// Deserializes [json] into a [FormComponent] 15 3 : DecimalFormComponent.fromJson(Map<String, dynamic> json) 16 3 : : property = json['property'], 17 6 : data = DecimalDataEntity(json['value']), 18 6 : options = TextComponentOptions.fromJson(json['options']), 19 3 : required = json['required'], 20 3 : fieldId = json['fieldId']; 21 : 22 : @override 23 : final String property; 24 : @override 25 : DecimalDataEntity data; 26 : @override 27 : String fieldId; 28 : @override 29 : final TextComponentOptions options; 30 : @override 31 : final bool required; 32 : }