toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts a PassportElementErrorTranslationFile object to JSON object

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'source': source,
    'type': type.value,
    'message': message,
    'file_hash': fileHash,
  }..removeWhere(_nullFilter);
}