toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (defaultNames != null) 'defaultNames': defaultNames!,
      if (name != null) 'name': name!,
      if (nicknames != null) 'nicknames': nicknames!,
    };