fromJson method

  1. @override
PathSource? fromJson(
  1. Object? json
)

Implementation

@override
PathSource? fromJson(Object? json) {
  if (json == null) return null;

  if (json is Map) {
    return PathSource.fromJson(json.cast<String, Object?>());
  }

  throw FormatException('Unsupported PathSource: $json');
}