DeleteProjectResult.fromJson constructor

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

Implementation

factory DeleteProjectResult.fromJson(Map<String, dynamic> json) {
  return DeleteProjectResult(
    deletedResources: (json['deletedResources'] as List?)
        ?.whereNotNull()
        .map((e) => Resource.fromJson(e as Map<String, dynamic>))
        .toList(),
    orphanedResources: (json['orphanedResources'] as List?)
        ?.whereNotNull()
        .map((e) => Resource.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}