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