codigo actual del servidor, con avances de joan
This commit is contained in:
30
source_code/lib/data_model/verification_form_response.dart
Normal file
30
source_code/lib/data_model/verification_form_response.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
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,
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user