DataRefModel.fromJsonString constructor

DataRefModel.fromJsonString(
  1. String jsonString
)

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

Implementation

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