baseToJson method

Map<String, dynamic> baseToJson()

Serialize common base fields to a map.

Implementation

Map<String, dynamic> baseToJson() => {
      'blockId': blockId,
      'type': type.name,
      'index': index,
      if (style != null) 'style': style,
    };