toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var screen = this.screen;
  var container = this.container;
  var header = this.header;
  var body = this.body;

  final json = <String, Object?>{};
  if (screen != null) {
    json[r'screen'] = screen.toJson();
  }
  if (container != null) {
    json[r'container'] = container.toJson();
  }
  if (header != null) {
    json[r'header'] = header.toJson();
  }
  if (body != null) {
    json[r'body'] = body.toJson();
  }
  return json;
}