LCOV - code coverage report
Current view: top level - lib\data\local\entity\chatwoot_user.g.dart - chatwoot_user.g.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 22 47 46.8 %
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_user.dart';
       4             : 
       5             : // **************************************************************************
       6             : // TypeAdapterGenerator
       7             : // **************************************************************************
       8             : 
       9             : class ChatwootUserAdapter extends TypeAdapter<ChatwootUser> {
      10             :   @override
      11             :   final int typeId = 3;
      12             : 
      13           0 :   @override
      14             :   ChatwootUser 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 ChatwootUser(
      20           0 :       identifier: fields[0] as String?,
      21           0 :       identifierHash: fields[1] as String?,
      22           0 :       name: fields[2] as String?,
      23           0 :       email: fields[3] as String?,
      24           0 :       avatarUrl: fields[4] as String?,
      25           0 :       customAttributes: fields[5] as dynamic,
      26             :     );
      27             :   }
      28             : 
      29           1 :   @override
      30             :   void write(BinaryWriter writer, ChatwootUser obj) {
      31             :     writer
      32           1 :       ..writeByte(6)
      33           1 :       ..writeByte(0)
      34           2 :       ..write(obj.identifier)
      35           1 :       ..writeByte(1)
      36           2 :       ..write(obj.identifierHash)
      37           1 :       ..writeByte(2)
      38           2 :       ..write(obj.name)
      39           1 :       ..writeByte(3)
      40           2 :       ..write(obj.email)
      41           1 :       ..writeByte(4)
      42           2 :       ..write(obj.avatarUrl)
      43           1 :       ..writeByte(5)
      44           2 :       ..write(obj.customAttributes);
      45             :   }
      46             : 
      47           0 :   @override
      48           0 :   int get hashCode => typeId.hashCode;
      49             : 
      50           0 :   @override
      51             :   bool operator ==(Object other) =>
      52             :       identical(this, other) ||
      53           0 :       other is ChatwootUserAdapter &&
      54           0 :           runtimeType == other.runtimeType &&
      55           0 :           typeId == other.typeId;
      56             : }
      57             : 
      58             : // **************************************************************************
      59             : // JsonSerializableGenerator
      60             : // **************************************************************************
      61             : 
      62           0 : ChatwootUser _$ChatwootUserFromJson(Map<String, dynamic> json) {
      63           0 :   return ChatwootUser(
      64           0 :     identifier: json['identifier'] as String?,
      65           0 :     identifierHash: json['identifierHash'] as String?,
      66           0 :     name: json['name'] as String?,
      67           0 :     email: json['email'] as String?,
      68           0 :     avatarUrl: json['avatar_url'] as String?,
      69           0 :     customAttributes: json['custom_attributes'],
      70             :   );
      71             : }
      72             : 
      73           2 : Map<String, dynamic> _$ChatwootUserToJson(ChatwootUser instance) =>
      74           2 :     <String, dynamic>{
      75           2 :       'identifier': instance.identifier,
      76           2 :       'identifierHash': instance.identifierHash,
      77           2 :       'name': instance.name,
      78           2 :       'email': instance.email,
      79           2 :       'avatar_url': instance.avatarUrl,
      80           2 :       'custom_attributes': instance.customAttributes,
      81             :     };

Generated by: LCOV version 1.15.alpha0w