LCOV - code coverage report
Current view: top level - core/models - open_graph_data.g.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 77 77 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 'open_graph_data.dart';
       4             : 
       5             : // **************************************************************************
       6             : // JsonSerializableGenerator
       7             : // **************************************************************************
       8             : 
       9           3 : OpenGraphData _$OpenGraphDataFromJson(Map json) {
      10           3 :   return OpenGraphData(
      11           3 :     title: json['title'] as String?,
      12           3 :     type: json['type'] as String?,
      13           3 :     url: json['url'] as String?,
      14           3 :     site: json['site'] as String?,
      15           3 :     siteName: json['site_name'] as String?,
      16           3 :     description: json['description'] as String?,
      17           3 :     determiner: json['determiner'] as String?,
      18           3 :     locale: json['locale'] as String?,
      19           3 :     images: (json['images'] as List<dynamic>?)
      20          12 :         ?.map((e) => Image.fromJson(Map<String, dynamic>.from(e as Map)))
      21           3 :         .toList(),
      22           3 :     videos: (json['videos'] as List<dynamic>?)
      23          12 :         ?.map((e) => Video.fromJson(Map<String, dynamic>.from(e as Map)))
      24           3 :         .toList(),
      25           3 :     audios: (json['audios'] as List<dynamic>?)
      26          12 :         ?.map((e) => Audio.fromJson(Map<String, dynamic>.from(e as Map)))
      27           3 :         .toList(),
      28             :   );
      29             : }
      30             : 
      31           1 : Map<String, dynamic> _$OpenGraphDataToJson(OpenGraphData instance) =>
      32           1 :     <String, dynamic>{
      33           1 :       'title': instance.title,
      34           1 :       'type': instance.type,
      35           1 :       'url': instance.url,
      36           1 :       'site': instance.site,
      37           1 :       'site_name': instance.siteName,
      38           1 :       'description': instance.description,
      39           1 :       'determiner': instance.determiner,
      40           1 :       'locale': instance.locale,
      41           5 :       'images': instance.images?.map((e) => e.toJson()).toList(),
      42           5 :       'videos': instance.videos?.map((e) => e.toJson()).toList(),
      43           5 :       'audios': instance.audios?.map((e) => e.toJson()).toList(),
      44             :     };
      45             : 
      46           3 : Image _$ImageFromJson(Map json) {
      47           3 :   return Image(
      48           3 :     image: json['image'] as String?,
      49           3 :     url: json['url'] as String?,
      50           3 :     secureUrl: json['secure_url'] as String?,
      51           3 :     width: json['width'] as String?,
      52           3 :     height: json['height'] as String?,
      53           3 :     type: json['type'] as String?,
      54           3 :     alt: json['alt'] as String?,
      55             :   );
      56             : }
      57             : 
      58           2 : Map<String, dynamic> _$ImageToJson(Image instance) => <String, dynamic>{
      59           1 :       'image': instance.image,
      60           1 :       'url': instance.url,
      61           1 :       'secure_url': instance.secureUrl,
      62           1 :       'width': instance.width,
      63           1 :       'height': instance.height,
      64           1 :       'type': instance.type,
      65           1 :       'alt': instance.alt,
      66             :     };
      67             : 
      68           3 : Video _$VideoFromJson(Map json) {
      69           3 :   return Video(
      70           3 :     image: json['image'] as String?,
      71           3 :     url: json['url'] as String?,
      72           3 :     secureUrl: json['secure_url'] as String?,
      73           3 :     width: json['width'] as String?,
      74           3 :     height: json['height'] as String?,
      75           3 :     type: json['type'] as String?,
      76           3 :     alt: json['alt'] as String?,
      77             :   );
      78             : }
      79             : 
      80           2 : Map<String, dynamic> _$VideoToJson(Video instance) => <String, dynamic>{
      81           1 :       'image': instance.image,
      82           1 :       'url': instance.url,
      83           1 :       'secure_url': instance.secureUrl,
      84           1 :       'width': instance.width,
      85           1 :       'height': instance.height,
      86           1 :       'type': instance.type,
      87           1 :       'alt': instance.alt,
      88             :     };
      89             : 
      90           3 : Audio _$AudioFromJson(Map json) {
      91           3 :   return Audio(
      92           3 :     audio: json['audio'] as String?,
      93           3 :     url: json['url'] as String?,
      94           3 :     secureUrl: json['secure_url'] as String?,
      95           3 :     type: json['type'] as String?,
      96             :   );
      97             : }
      98             : 
      99           2 : Map<String, dynamic> _$AudioToJson(Audio instance) => <String, dynamic>{
     100           1 :       'audio': instance.audio,
     101           1 :       'url': instance.url,
     102           1 :       'secure_url': instance.secureUrl,
     103           1 :       'type': instance.type,
     104             :     };

Generated by: LCOV version 1.15