LCOV - code coverage report
Current view: top level - lib/organisations/models - organisations_section_model.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 4 7 57.1 %
Date: 2022-03-03 12:16:13 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:freezed_annotation/freezed_annotation.dart';
       2             : import 'package:redfire/types.dart';
       3             : 
       4             : import 'organisation_creator_view_model.dart';
       5             : import 'organisation_selector_view_model.dart';
       6             : 
       7             : part 'organisations_section_model.freezed.dart';
       8             : part 'organisations_section_model.g.dart';
       9             : 
      10             : @freezed
      11             : class OrganisationsSectionModel with _$OrganisationsSectionModel, ReduxState {
      12             :   static const String className = 'OrganisationsSectionModel';
      13             : 
      14           6 :   const OrganisationsSectionModel._();
      15             :   factory OrganisationsSectionModel({
      16             :     required OrganisationCreatorViewModel creator,
      17             :     required OrganisationSelectorViewModel selector,
      18             :     required bool deleting,
      19             :   }) = _OrganisationsSectionModel;
      20             : 
      21          12 :   factory OrganisationsSectionModel.init() => OrganisationsSectionModel(
      22           6 :       creator: OrganisationCreatorViewModel(),
      23           6 :       selector: OrganisationSelectorViewModel.init(),
      24             :       deleting: false);
      25             : 
      26           0 :   factory OrganisationsSectionModel.fromJson(JsonMap json) =>
      27           0 :       _$OrganisationsSectionModelFromJson(json);
      28             : 
      29           0 :   @override
      30             :   String get typeName => className;
      31             : }

Generated by: LCOV version 1.13