toJson method

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

Creates a PassportElementErrorFile object from JSON object

Implementation

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