toJson method

Object toJson()

Converts the EmbedField to a Map that can be serialized to JSON.

Implementation

Object toJson () => {
  'name': name,
  'value': value,
  'inline': inline ?? false,
};