UngroupResourcesOutput.fromJson constructor

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

Implementation

factory UngroupResourcesOutput.fromJson(Map<String, dynamic> json) {
  return UngroupResourcesOutput(
    failed: (json['Failed'] as List?)
        ?.whereNotNull()
        .map((e) => FailedResource.fromJson(e as Map<String, dynamic>))
        .toList(),
    pending: (json['Pending'] as List?)
        ?.whereNotNull()
        .map((e) => PendingResource.fromJson(e as Map<String, dynamic>))
        .toList(),
    succeeded: (json['Succeeded'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}