LCOV - code coverage report
Current view: top level - lib/model/form/component - cross_reference_form_component.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 9 9 100.0 %
Date: 2021-11-04 14:59:40 Functions: 0 0 -

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

Generated by: LCOV version 1.15