CopyModelResponse.fromJson constructor

CopyModelResponse.fromJson(
  1. Object? j
)

Implementation

factory CopyModelResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CopyModelResponse(
    model: switch (json['model']) {
      null => '',
      Object $1 => decodeString($1),
    },
    modelVersionId: switch (json['modelVersionId']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}