fromMap static method

ShakeTextInput fromMap(
  1. Map data
)
override

Converts map to object.

Implementation

static ShakeTextInput 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 ShakeTextInput(
    key,
    label,
    initialValue: initialValue,
    required: required,
    labelRes: labelRes,
  );
}