toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = this.name;
  json[r'skin'] = this.skin;
  json[r'x'] = this.x;
  json[r'y'] = this.y;
  if (this.content != null) {
    json[r'content'] = this.content;
  } else {
    json[r'content'] = null;
  }
  return json;
}