ListAssociationsResult.fromJson constructor

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

Implementation

factory ListAssociationsResult.fromJson(Map<String, dynamic> json) {
  return ListAssociationsResult(
    associations: (json['Associations'] as List?)
        ?.whereNotNull()
        .map((e) => Association.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}