FieldModel.fromJson constructor
Constructs a new instance of FieldModel,
from json
, which must be a valid JSON object. Throws if the conversion
fails.
Implementation
factory FieldModel.fromJson(
Map<String, dynamic>? json,
) {
try {
return fromJsonOrNull(json)!;
} catch (e) {
assert(false, '$FieldModel.fromJson: $e');
rethrow;
}
}