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

          Line data    Source code
       1             : 
       2             : import 'package:equatable/equatable.dart';
       3             : import 'package:hive_flutter/hive_flutter.dart';
       4             : import 'package:json_annotation/json_annotation.dart';
       5             : 
       6             : part 'chatwoot_user.g.dart';
       7             : 
       8             : @JsonSerializable(explicitToJson: true)
       9             : @HiveType(typeId: 3)
      10             : class ChatwootUser extends Equatable{
      11             : 
      12             :   @JsonKey()
      13             :   @HiveField(0)
      14             :   final String? identifier;
      15             : 
      16             :   @JsonKey()
      17             :   @HiveField(1)
      18             :   final String? identifierHash;
      19             : 
      20             :   @JsonKey()
      21             :   @HiveField(2)
      22             :   final String? name;
      23             : 
      24             :   @JsonKey()
      25             :   @HiveField(3)
      26             :   final String? email;
      27             : 
      28             :   @JsonKey(name: "avatar_url")
      29             :   @HiveField(4)
      30             :   final String? avatarUrl;
      31             : 
      32             :   @JsonKey(name: "custom_attributes")
      33             :   @HiveField(5)
      34             :   final dynamic customAttributes;
      35             : 
      36           6 :   ChatwootUser({
      37             :     this.identifier,
      38             :     this.identifierHash,
      39             :     this.name,
      40             :     this.email,
      41             :     this.avatarUrl,
      42             :     this.customAttributes
      43             :   });
      44             : 
      45           0 :   @override
      46           0 :   List<Object?> get props => [
      47           0 :     identifier,
      48           0 :     identifierHash,
      49           0 :     name,
      50           0 :     email,
      51           0 :     avatarUrl,
      52           0 :     customAttributes
      53             :   ];
      54             : 
      55             : 
      56           0 :   factory ChatwootUser.fromJson(Map<String, dynamic> json) => _$ChatwootUserFromJson(json);
      57             : 
      58           4 :   Map<String, dynamic> toJson() => _$ChatwootUserToJson(this);
      59             : 
      60             : }

Generated by: LCOV version 1.15.alpha0w