ConnectionAlias.fromJson constructor

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

Implementation

factory ConnectionAlias.fromJson(Map<String, dynamic> json) {
  return ConnectionAlias(
    aliasId: json['AliasId'] as String?,
    associations: (json['Associations'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ConnectionAliasAssociation.fromJson(e as Map<String, dynamic>))
        .toList(),
    connectionString: json['ConnectionString'] as String?,
    ownerAccountId: json['OwnerAccountId'] as String?,
    state: (json['State'] as String?)?.toConnectionAliasState(),
  );
}