toJson method
Converts a PassportElementError to a Map for JSON encoding.
Implementation
Map<String, dynamic> toJson() {
return {
'source': source,
'type': type.value,
}..removeWhere(_nullFilter);
}
Converts a PassportElementError to a Map for JSON encoding.
Map<String, dynamic> toJson() {
return {
'source': source,
'type': type.value,
}..removeWhere(_nullFilter);
}