toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  result["name"] = name;
  result["documentID"] = documentID;
  result["ICAOCode"] = iCAOCode;
  result["FDSID"] = fDSID;
  result["dType"] = dType.value;
  result["dFormat"] = dFormat.value;
  result["dMRZ"] = dMRZ;
  result["isDeprecated"] = isDeprecated;
  result["dDescription"] = dDescription;
  result["dYear"] = dYear;
  result["dCountryName"] = dCountryName;
  result["pageIndex"] = pageIndex;

  return result;
}