toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> map = {};
  if (properties != null) {
    map['properties'] = properties;
  }
  if (type != null) {
    map['type'] = type?.index;
  }
  if (id != null) {
    map['id'] = id;
  }
  return map;
}