SourceVerifyOptions.fromJson constructor

SourceVerifyOptions.fromJson(
  1. Object? json
)

Implementation

factory SourceVerifyOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceVerifyOptions(
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    values:
        (map['values'] as List<Object?>).map((el) => (el as String)).toList(),
  );
}