toJson method

Map<String, dynamic> toJson()

Implementation

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