toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      'protocolName': protocolName ?? '',
      'major': major ?? -1,
      'minor': minor ?? -1,
    };