toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'principalTypes': principalTypes,
      'resourceTypes': resourceTypes,
      if (contextType != null) 'context': contextType!.toJson(),
    };