Files
elcaribe/source_code/lib/data_model/verification_form_response.dart
2023-08-07 15:52:04 -04:00

31 lines
813 B
Dart

import 'dart:convert';
List<VerificationFormResponse> verificationFormResponseFromJson(String str) => List<VerificationFormResponse>.from(json.decode(str).map((x) => VerificationFormResponse.fromJson(x)));
String verificationFormResponseToJson(List<VerificationFormResponse> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));
class VerificationFormResponse {
String? type;
String? label;
String? options;
VerificationFormResponse({
this.type,
this.label,
this.options,
});
factory VerificationFormResponse.fromJson(Map<String, dynamic> json) => VerificationFormResponse(
type: json["type"],
label: json["label"],
options: json["options"],
);
Map<String, dynamic> toJson() => {
"type": type,
"label": label,
"options": options,
};
}