ListAssociationVersionsResult.fromJson constructor

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

Implementation

factory ListAssociationVersionsResult.fromJson(Map<String, dynamic> json) {
  return ListAssociationVersionsResult(
    associationVersions: (json['AssociationVersions'] as List?)
        ?.whereNotNull()
        .map(
            (e) => AssociationVersionInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}