GenerateDartModel.fromJson constructor

GenerateDartModel.fromJson(
  1. Map<String, dynamic>? json
)

Constructs a new instance of GenerateDartModel, from json, which must be a valid JSON object. Throws if the conversion fails.

Implementation

factory GenerateDartModel.fromJson(
  Map<String, dynamic>? json,
) {
  try {
    return fromJsonOrNull(json)!;
  } catch (e) {
    assert(false, '$GenerateDartModel.fromJson: $e');
    rethrow;
  }
}