DocumentOptions.fromJson constructor
DocumentOptions.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentOptions.fromJson(Map<String, dynamic> json) {
rejectUnknownKeys('DocumentOptions', json, const {
'documentFiltering',
'nfcPolicy',
});
return DocumentOptions(
documentFiltering: json['documentFiltering'] == null
? null
: DocumentFiltering.fromJson(
json['documentFiltering'] as Map<String, dynamic>,
),
nfcPolicy: json['nfcPolicy'] == null
? NfcPolicy.optional
: NfcPolicy.fromJson(json['nfcPolicy'] as String),
);
}