toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (formattedProtocol != null) 'formattedProtocol': formattedProtocol!,
      if (formattedType != null) 'formattedType': formattedType!,
      if (metadata != null) 'metadata': metadata!,
      if (protocol != null) 'protocol': protocol!,
      if (type != null) 'type': type!,
      if (username != null) 'username': username!,
    };