NfsMount.fromJson constructor

NfsMount.fromJson(
  1. Object? j
)

Implementation

factory NfsMount.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NfsMount(
    server: switch (json['server']) {
      null => '',
      Object $1 => decodeString($1),
    },
    path: switch (json['path']) {
      null => '',
      Object $1 => decodeString($1),
    },
    mountPoint: switch (json['mountPoint']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}