ListResourceDefinitionVersionsResponse.fromJson constructor

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

Implementation

factory ListResourceDefinitionVersionsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListResourceDefinitionVersionsResponse(
    nextToken: json['NextToken'] as String?,
    versions: (json['Versions'] as List?)
        ?.whereNotNull()
        .map((e) => VersionInformation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}