Alias.fromJson constructor

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

Implementation

factory Alias.fromJson(Map<String, dynamic> json) {
  return Alias(
    aliasArn: json['AliasArn'] as String?,
    aliasId: json['AliasId'] as String?,
    creationTime: timeStampFromJson(json['CreationTime']),
    description: json['Description'] as String?,
    lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
    name: json['Name'] as String?,
    routingStrategy: json['RoutingStrategy'] != null
        ? RoutingStrategy.fromJson(
            json['RoutingStrategy'] as Map<String, dynamic>)
        : null,
  );
}