serialize method Null safety

Map<String, String> serialize()

Serializes the object to JSON.

Implementation

Map<String, String> serialize() {
  return <String, String>{
    'conditionName': conditionName
  };
}