RBDVolumeSource.fromJson constructor

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

Creates a RBDVolumeSource from JSON data.

Implementation

RBDVolumeSource.fromJson(Map<String, dynamic> json)
    : this(
        fsType: json['fsType'],
        image: json['image'],
        keyring: json['keyring'],
        monitors: json['monitors'] != null
            ? List<String>.from(json['monitors'])
            : [],
        pool: json['pool'],
        readOnly: json['readOnly'],
        secretRef: json['secretRef'] != null
            ? LocalObjectReference.fromJson(json['secretRef'])
            : null,
        user: json['user'],
      );