GetDisksResult.fromJson constructor

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

Implementation

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