GroupResourcesOutput.fromJson constructor
GroupResourcesOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GroupResourcesOutput.fromJson(Map<String, dynamic> json) {
return GroupResourcesOutput(
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(),
);
}