toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final identifier = this.identifier;
  final location = this.location;
  final mountOptions = this.mountOptions;
  final mountPoint = this.mountPoint;
  final type = this.type;
  return {
    if (identifier != null) 'identifier': identifier,
    if (location != null) 'location': location,
    if (mountOptions != null) 'mountOptions': mountOptions,
    if (mountPoint != null) 'mountPoint': mountPoint,
    if (type != null) 'type': type.toValue(),
  };
}