$required<T> method
Required property key, converted by read.
Implementation
T $required<T>(String key, T Function(Object? value, String path) read) {
if (!_json.containsKey(key)) {
throw FormatException('$runtimeType: missing required "$key"');
}
return read(_json[key], '$runtimeType.$key');
}