Outpost.fromJson constructor

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

Implementation

factory Outpost.fromJson(Map<String, dynamic> json) {
  return Outpost(
    availabilityZone: json['AvailabilityZone'] as String?,
    availabilityZoneId: json['AvailabilityZoneId'] as String?,
    description: json['Description'] as String?,
    lifeCycleStatus: json['LifeCycleStatus'] as String?,
    name: json['Name'] as String?,
    outpostArn: json['OutpostArn'] as String?,
    outpostId: json['OutpostId'] as String?,
    ownerId: json['OwnerId'] as String?,
    siteId: json['SiteId'] as String?,
    tags: (json['Tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}