toJson method
Converts a PassportData object to JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'data': data.map((e) => e.toJson()).toList(),
'credentials': credentials.toJson(),
};
}
Converts a PassportData object to JSON object
Map<String, dynamic> toJson() {
return {
'data': data.map((e) => e.toJson()).toList(),
'credentials': credentials.toJson(),
};
}