BatchGetApplicationRevisionsOutput.fromJson constructor

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

Implementation

factory BatchGetApplicationRevisionsOutput.fromJson(
    Map<String, dynamic> json) {
  return BatchGetApplicationRevisionsOutput(
    applicationName: json['applicationName'] as String?,
    errorMessage: json['errorMessage'] as String?,
    revisions: (json['revisions'] as List?)
        ?.whereNotNull()
        .map((e) => RevisionInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}