FieldModel.fromJsonString constructor

FieldModel.fromJsonString(
  1. String jsonString
)

Constructs a new instance of FieldModel, from jsonString, which must be a valid JSON String. Throws if the conversion fails.

Implementation

factory FieldModel.fromJsonString(
  String jsonString,
) {
  try {
    return fromJsonStringOrNull(jsonString)!;
  } catch (e) {
    assert(false, '$FieldModel.fromJsonString: $e');
    rethrow;
  }
}