toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.date != null) {
    json[r'date'] = this.date;
  } else {
    json[r'date'] = null;
  }
  if (this.usage != null) {
    json[r'usage'] = this.usage;
  } else {
    json[r'usage'] = null;
  }
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
  return json;
}