toJson method
Converts a PassportElementErrorTranslationFiles object to JSON object
Implementation
@override
Map<String, dynamic> toJson() {
return {
'source': source,
'type': type.value,
'message': message,
'file_hashes': fileHashes,
}..removeWhere(_nullFilter);
}