fromJson static method

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

Implementation

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

  return RichMessageSourceBlocks(
    blocks: List<InputPageBlock>.from(((json['blocks'] as List<dynamic>?) ??
            <dynamic>[])
        .map((item) => InputPageBlock.fromJson(item as Map<String, dynamic>?))
        .toList()),
  );
}