toJson method

Map<String, dynamic> toJson()

Converts a PassportData object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'data': data.map((e) => e.toJson()).toList(),
    'credentials': credentials.toJson(),
  };
}