LCOV - code coverage report
Current view: top level - lib\data\local\entity\chatwoot_contact.g.dart - chatwoot_contact.g.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 19 42 45.2 %
Date: Tue Jul 13 13:39:38 2021 Functions: 0 0 -

          Line data    Source code
       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
       2             : 
       3             : part of 'chatwoot_contact.dart';
       4             : 
       5             : // **************************************************************************
       6             : // TypeAdapterGenerator
       7             : // **************************************************************************
       8             : 
       9             : class ChatwootContactAdapter extends TypeAdapter<ChatwootContact> {
      10             :   @override
      11             :   final int typeId = 0;
      12             : 
      13           0 :   @override
      14             :   ChatwootContact read(BinaryReader reader) {
      15           0 :     final numOfFields = reader.readByte();
      16           0 :     final fields = <int, dynamic>{
      17           0 :       for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
      18             :     };
      19           0 :     return ChatwootContact(
      20           0 :       id: fields[0] as int,
      21           0 :       contactIdentifier: fields[1] as String?,
      22           0 :       pubsubToken: fields[2] as String,
      23           0 :       name: fields[3] as String,
      24           0 :       email: fields[4] as String,
      25             :     );
      26             :   }
      27             : 
      28           2 :   @override
      29             :   void write(BinaryWriter writer, ChatwootContact obj) {
      30             :     writer
      31           2 :       ..writeByte(5)
      32           2 :       ..writeByte(0)
      33           4 :       ..write(obj.id)
      34           2 :       ..writeByte(1)
      35           4 :       ..write(obj.contactIdentifier)
      36           2 :       ..writeByte(2)
      37           4 :       ..write(obj.pubsubToken)
      38           2 :       ..writeByte(3)
      39           4 :       ..write(obj.name)
      40           2 :       ..writeByte(4)
      41           4 :       ..write(obj.email);
      42             :   }
      43             : 
      44           0 :   @override
      45           0 :   int get hashCode => typeId.hashCode;
      46             : 
      47           0 :   @override
      48             :   bool operator ==(Object other) =>
      49             :       identical(this, other) ||
      50           0 :       other is ChatwootContactAdapter &&
      51           0 :           runtimeType == other.runtimeType &&
      52           0 :           typeId == other.typeId;
      53             : }
      54             : 
      55             : // **************************************************************************
      56             : // JsonSerializableGenerator
      57             : // **************************************************************************
      58             : 
      59           8 : ChatwootContact _$ChatwootContactFromJson(Map<String, dynamic> json) {
      60           8 :   return ChatwootContact(
      61           8 :     id: json['id'] as int,
      62           8 :     contactIdentifier: json['source_id'] as String?,
      63           8 :     pubsubToken: json['pubsub_token'] as String,
      64           8 :     name: json['name'] as String,
      65           8 :     email: json['email'] as String,
      66             :   );
      67             : }
      68             : 
      69           0 : Map<String, dynamic> _$ChatwootContactToJson(ChatwootContact instance) =>
      70           0 :     <String, dynamic>{
      71           0 :       'id': instance.id,
      72           0 :       'source_id': instance.contactIdentifier,
      73           0 :       'pubsub_token': instance.pubsubToken,
      74           0 :       'name': instance.name,
      75           0 :       'email': instance.email,
      76             :     };

Generated by: LCOV version 1.15.alpha0w