GetIPSetResponse.fromJson constructor

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

Implementation

factory GetIPSetResponse.fromJson(Map<String, dynamic> json) {
  return GetIPSetResponse(
    format: (json['format'] as String).toIpSetFormat(),
    location: json['location'] as String,
    name: json['name'] as String,
    status: (json['status'] as String).toIpSetStatus(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}