Value.fromJson constructor

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

Implementation

factory Value.fromJson(Map<String, dynamic> json) {
  return Value(
    text: json['text'] as String,
    range: json.containsKey('range')
        ? SourceRange.fromJson(json['range'] as Map<String, dynamic>)
        : null,
    specificity: json.containsKey('specificity')
        ? Specificity.fromJson(json['specificity'] as Map<String, dynamic>)
        : null,
  );
}