LCOV - code coverage report
Current view: top level - core/models - group.g.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 40 40 100.0 %
Date: 2021-04-14 08:03:52 Functions: 0 0 -

          Line data    Source code
       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
       2             : 
       3             : part of 'group.dart';
       4             : 
       5             : // **************************************************************************
       6             : // JsonSerializableGenerator
       7             : // **************************************************************************
       8             : 
       9           2 : Group<T> _$GroupFromJson<T>(
      10             :   Map json,
      11             :   T Function(Object? json) fromJsonT,
      12             : ) {
      13           2 :   return Group<T>(
      14           2 :     id: json['id'] as String?,
      15           2 :     group: json['group'] as String?,
      16           6 :     activities: (json['activities'] as List<dynamic>?)?.map(fromJsonT).toList(),
      17           2 :     actorCount: json['actor_count'] as int?,
      18           2 :     createdAt: json['created_at'] == null
      19             :         ? null
      20           4 :         : DateTime.parse(json['created_at'] as String),
      21           2 :     updatedAt: json['updated_at'] == null
      22             :         ? null
      23           4 :         : DateTime.parse(json['updated_at'] as String),
      24             :   );
      25             : }
      26             : 
      27           1 : Map<String, dynamic> _$GroupToJson<T>(
      28             :   Group<T> instance,
      29             :   Object Function(T value) toJsonT,
      30             : ) =>
      31           1 :     <String, dynamic>{
      32           1 :       'id': instance.id,
      33           1 :       'group': instance.group,
      34           3 :       'activities': instance.activities?.map(toJsonT).toList(),
      35           1 :       'actor_count': instance.actorCount,
      36           2 :       'created_at': instance.createdAt?.toIso8601String(),
      37           2 :       'updated_at': instance.updatedAt?.toIso8601String(),
      38             :     };
      39             : 
      40           2 : NotificationGroup<T> _$NotificationGroupFromJson<T>(
      41             :   Map json,
      42             :   T Function(Object? json) fromJsonT,
      43             : ) {
      44           2 :   return NotificationGroup<T>(
      45           2 :     id: json['id'] as String?,
      46           2 :     group: json['group'] as String?,
      47           6 :     activities: (json['activities'] as List<dynamic>?)?.map(fromJsonT).toList(),
      48           2 :     actorCount: json['actor_count'] as int?,
      49           2 :     createdAt: json['created_at'] == null
      50             :         ? null
      51           4 :         : DateTime.parse(json['created_at'] as String),
      52           2 :     updatedAt: json['updated_at'] == null
      53             :         ? null
      54           4 :         : DateTime.parse(json['updated_at'] as String),
      55           2 :     isRead: json['is_read'] as bool?,
      56           2 :     isSeen: json['is_seen'] as bool?,
      57             :   );
      58             : }
      59             : 
      60           1 : Map<String, dynamic> _$NotificationGroupToJson<T>(
      61             :   NotificationGroup<T> instance,
      62             :   Object Function(T value) toJsonT,
      63             : ) =>
      64           1 :     <String, dynamic>{
      65           1 :       'id': instance.id,
      66           1 :       'group': instance.group,
      67           3 :       'activities': instance.activities?.map(toJsonT).toList(),
      68           1 :       'actor_count': instance.actorCount,
      69           2 :       'created_at': instance.createdAt?.toIso8601String(),
      70           2 :       'updated_at': instance.updatedAt?.toIso8601String(),
      71           1 :       'is_read': instance.isRead,
      72           1 :       'is_seen': instance.isSeen,
      73             :     };

Generated by: LCOV version 1.15