toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final containerName = this.containerName;
  final properties = this.properties;
  final type = this.type;
  return {
    'containerName': containerName,
    if (properties != null) 'properties': properties,
    if (type != null) 'type': type.toValue(),
  };
}