StaticIp.fromJson constructor

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

Implementation

factory StaticIp.fromJson(Map<String, dynamic> json) {
  return StaticIp(
    arn: json['arn'] as String?,
    attachedTo: json['attachedTo'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    ipAddress: json['ipAddress'] as String?,
    isAttached: json['isAttached'] as bool?,
    location: json['location'] != null
        ? ResourceLocation.fromJson(json['location'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
    supportCode: json['supportCode'] as String?,
  );
}