toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (broadcast != null) 'broadcast': broadcast,
    if (read != null) 'read': read,
    if (writeWithoutResponse != null)
      'writeWithoutResponse': writeWithoutResponse,
    if (write != null) 'write': write,
    if (notify != null) 'notify': notify,
    if (indicate != null) 'indicate': indicate,
    if (authenticatedSignedWrites != null)
      'authenticatedSignedWrites': authenticatedSignedWrites,
    if (extendedProperties != null) 'extendedProperties': extendedProperties,
  };
}