fromJson static method

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

Implementation

static TextCompositionStyleExample? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TextCompositionStyleExample(
    sourceText: FormattedText.fromJson(tdMapFromJson(json['source_text'])),
    resultText: FormattedText.fromJson(tdMapFromJson(json['result_text'])),
  );
}