Data.fromJson constructor
Implementation
factory Data.fromJson(Map<String, dynamic> json) => Data(
code: json['code'],
content: json['content'],
keys: json['keys'] == null ? null : Keys.fromJson(json['keys']),
ledger: json['ledger'] == null ? null : Ledger.fromJson(json['ledger']),
recipients: json['recipients'] == null
? null
: List<String>.from(json['recipients'].map((x) => x)),
);