TestingData.fromJson constructor

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

Implementation

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