mapRepresentation method

Map<String, dynamic> mapRepresentation()

Implementation

Map<String, dynamic> mapRepresentation() {
  final json = <String, dynamic>{
    'text': text,
    'channel': channel,
    'replyTo': replyTo,
    'file': file?.mapRepresentation()
  };
  return json;
}