TunnelSummary.fromJson constructor

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

Implementation

factory TunnelSummary.fromJson(Map<String, dynamic> json) {
  return TunnelSummary(
    createdAt: timeStampFromJson(json['createdAt']),
    description: json['description'] as String?,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    status: (json['status'] as String?)?.toTunnelStatus(),
    tunnelArn: json['tunnelArn'] as String?,
    tunnelId: json['tunnelId'] as String?,
  );
}