fromJson_key static method

String fromJson_key(
  1. Map<String, dynamic> json
)

Implementation

static String fromJson_key(Map<String, dynamic> json) {
  final _jsonData = json[r'key'];
  if (_jsonData == null) {
    throw DeserialisationError(json, r'key', r'',
        'key field is null and is required to have a value');
  }

  return (json[r'key'] as String); // sausage
}