fromJson static method

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

Implementation

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

  return RichTexts(
    texts: List<RichText>.from(
      tdListFromJson(json['texts'])
          .map((item) => RichText.fromJson(tdMapFromJson(item)))
          .whereType<RichText>(),
    ),
  );
}