import 'dart:convert'; VerifyEmailOTP verifyEmailOTPFromJson(String str) => VerifyEmailOTP.fromJson(json.decode(str)); String verifyEmailOTPToJson(VerifyEmailOTP data) => json.encode(data.toJson()); class VerifyEmailOTP { bool? success; Null? errors; VerifyEmailOTP({this.success, this.errors}); VerifyEmailOTP.fromJson(Map json) { success = json['success']; errors = json['errors']; } Map toJson() { final Map data = new Map(); data['success'] = this.success; data['errors'] = this.errors; return data; } }