UsageAllocation.fromJson constructor

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

Implementation

factory UsageAllocation.fromJson(Map<String, dynamic> json) {
  return UsageAllocation(
    allocatedUsageQuantity: json['AllocatedUsageQuantity'] as int,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}