toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();

  data['lastUpdated'] = this.lastUpdated;
  data['id'] = this.id;
  data['created'] = this.created;
  data['name'] = this.name;
  data['shortName'] = this.shortName;
  data['code'] = this.code;
  data['displayName'] = this.displayName;
  data['valueType'] = this.valueType;
  data['aggregationType'] = this.aggregationType;
  data['description'] = this.description;
  data['dirty'] = this.dirty;
  data['translations'] = jsonEncode(this.translations);

  return data;
}