toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'message': message,
      'time': time.toIso8601String(),
      if (wrapWidth != null) 'wrapWidth': wrapWidth,
    };