toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'claimType': claimType,
    'domain': domain,
    'structuralPattern': structuralPattern,
    if (factTypes.isNotEmpty) 'factTypes': factTypes,
    if (responseContext.isNotEmpty) 'responseContext': responseContext,
    'outcome': outcome.toJson(),
  };
}