GetOperationsResult.fromJson constructor

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

Implementation

factory GetOperationsResult.fromJson(Map<String, dynamic> json) {
  return GetOperationsResult(
    nextPageToken: json['nextPageToken'] as String?,
    operations: (json['operations'] as List?)
        ?.whereNotNull()
        .map((e) => Operation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}