QuobyteVolumeSource.fromJson constructor

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

Creates a QuobyteVolumeSource from JSON data.

Implementation

factory QuobyteVolumeSource.fromJson(Map<String, dynamic> json) {
  final tempGroupJson = json['group'];
  final tempReadOnlyJson = json['readOnly'];
  final tempRegistryJson = json['registry'];
  final tempTenantJson = json['tenant'];
  final tempUserJson = json['user'];
  final tempVolumeJson = json['volume'];

  final String? tempGroup = tempGroupJson;
  final bool? tempReadOnly = tempReadOnlyJson;
  final String tempRegistry = tempRegistryJson;
  final String? tempTenant = tempTenantJson;
  final String? tempUser = tempUserJson;
  final String tempVolume = tempVolumeJson;

  return QuobyteVolumeSource(
    group: tempGroup,
    readOnly: tempReadOnly,
    registry: tempRegistry,
    tenant: tempTenant,
    user: tempUser,
    volume: tempVolume,
  );
}