LCOV - code coverage report
Current view: top level - response - at_notification.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 0 20 0.0 %
Date: 2022-01-19 17:54:05 Functions: 0 0 -

          Line data    Source code
       1             : class AtNotification {
       2             :   late String id;
       3             :   late String key;
       4             :   late String from;
       5             :   late String to;
       6             :   late int epochMillis;
       7             :   String? value;
       8             :   String? operation;
       9             : 
      10           0 :   AtNotification(this.id, this.key, this.from, this.to, this.epochMillis,
      11             :       {this.value, this.operation});
      12             : 
      13           0 :   factory AtNotification.fromJson(Map<String, dynamic> json) {
      14           0 :     return AtNotification(
      15           0 :         json['id'], json['key'], json['from'], json['to'], json['epochMillis'],
      16           0 :         value: json['value'], operation: json['operation']);
      17             :   }
      18             : 
      19           0 :   Map<String, dynamic> toJson() {
      20           0 :     return {
      21           0 :       'id': id,
      22           0 :       'key': key,
      23           0 :       'from': from,
      24           0 :       'to': to,
      25           0 :       'epochMillis': epochMillis,
      26           0 :       'value': value,
      27           0 :       'operation': operation
      28             :     };
      29             :   }
      30             : 
      31           0 :   static List<AtNotification> fromJsonList(
      32             :       List<Map<String, dynamic>> jsonList) {
      33           0 :     final notificationList = <AtNotification>[];
      34           0 :     for (var json in jsonList) {
      35           0 :       notificationList.add(AtNotification.fromJson(json));
      36             :     }
      37             :     return notificationList;
      38             :   }
      39             : 
      40           0 :   @override
      41             :   String toString() {
      42           0 :     return 'AtNotification{id: $id, key: $key, from: $from, to: $to, epochMillis: $epochMillis, value: $value, operation: $operation}';
      43             :   }
      44             : }

Generated by: LCOV version 1.13