TrainingData.fromJson constructor

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

Implementation

factory TrainingData.fromJson(Map<String, dynamic> json) {
  return TrainingData(
    assets: (json['Assets'] as List?)
        ?.whereNotNull()
        .map((e) => Asset.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}