ModelInfo.fromJson constructor
Implementation
factory ModelInfo.fromJson(Map<String, dynamic> json) => ModelInfo(
id: json['id'] as String,
source: _sourceFromJson(json['source'] as Map<String, dynamic>),
installedAt: DateTime.parse(json['installedAt'] as String),
sizeBytes: json['sizeBytes'] as int,
type: ModelType.values.firstWhere((e) => e.toString() == json['type']),
hasLoraWeights: json['hasLoraWeights'] as bool,
);