toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'display_name'] = this.displayName;
    json[r'id'] = this.id;
    json[r'children'] = this.children;
  if (this.blockId != null) {
    json[r'block_id'] = this.blockId;
  } else {
    json[r'block_id'] = null;
  }
  if (this.totalTime != null) {
    json[r'total_time'] = this.totalTime;
  } else {
    json[r'total_time'] = null;
  }
  return json;
}