fromMap static method
Converts map to object.
Implementation
static ShakeEmail fromMap(Map data) {
String key = data['key'] ?? '';
String? label = data['label'];
String initialValue = data['initialValue'] ?? '';
bool required = data['required'] ?? false;
String? labelRes = data['labelRes'];
return ShakeEmail(
key,
label,
initialValue: initialValue,
required: required,
labelRes: labelRes,
);
}