GetAutoSnapshotsResult.fromJson constructor

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

Implementation

factory GetAutoSnapshotsResult.fromJson(Map<String, dynamic> json) {
  return GetAutoSnapshotsResult(
    autoSnapshots: (json['autoSnapshots'] as List?)
        ?.whereNotNull()
        .map((e) => AutoSnapshotDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
    resourceName: json['resourceName'] as String?,
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
  );
}