GetOperationsForResourceResult.fromJson constructor

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

Implementation

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