decode static method

UISelectInputOption? decode(
  1. dynamic json
)

Implementation

static UISelectInputOption? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return UISelectInputOption(
    value: StringDecoder.decode(json['value']),
    label: StringDecoder.decode(json['label']),
  );
}