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