LCOV - code coverage report
Current view: top level - lib/model/form/component - date_time_form_component.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 7 7 100.0 %
Date: 2021-09-29 11:41:23 Functions: 0 0 -

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

Generated by: LCOV version 1.15