ModelSourceInfo.fromJson constructor

ModelSourceInfo.fromJson(
  1. Object? j
)

Implementation

factory ModelSourceInfo.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ModelSourceInfo(
    sourceType: switch (json['sourceType']) {
      null => ModelSourceInfo_ModelSourceType.$default,
      Object $1 => ModelSourceInfo_ModelSourceType.fromJson($1),
    },
    copy: switch (json['copy']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}