fromJson static method

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

Implementation

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

  return PageBlockCaption(
    text: RichText.fromJson(tdMapFromJson(json['text'])),
    credit: RichText.fromJson(tdMapFromJson(json['credit'])),
  );
}