fromJson static method

StoreShotsSet? fromJson(
  1. Map<String, Object?> json
)

Implementation

static StoreShotsSet? fromJson(Map<String, Object?> json) {
  var at = DateTime.tryParse('${json['exportedAt']}');
  if (at == null) return null;
  return StoreShotsSet(
    app: '${json['app']}',
    store: '${json['store']}',
    deviceClass: '${json['class']}',
    appLocale: '${json['appLocale']}',
    storeLocale: '${json['storeLocale']}',
    output: '${json['output']}',
    directory: '${json['directory']}',
    images: [for (var image in json['images'] as List? ?? []) '$image'],
    failed: json['failed'] as int? ?? 0,
    framesFailed: json['framesFailed'] as int? ?? 0,
    exportedAt: at,
  );
}