toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': type.toJson(),
'sides': sides.map((e) => e.toJson()).toList(),
'documentType': documentType.toJson(),
if (countryCode != null) 'countryCode': countryCode,
if (nfc != null) 'nfc': nfc!.toJson(),
};