toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'function_uuid': functionUuid,
      'title': title,
      'width': size.width,
      'height': size.height,
      'blocks': List.from(
        programmingBlocks.map(
          (e) => e.toJson(),
        ),
      ),
      'function_scope': functionScopeBlockModel.toJson(),
    };