InterpolatedString.fromJson constructor

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

Implementation

factory InterpolatedString.fromJson(Map<String, dynamic> json) {
  final segments = (json['segments'] as List)
      .map((s) => ValueSegment.fromJson(s as Map<String, dynamic>))
      .toList();
  return InterpolatedString(segments, json['quoteChar']);
}