toJson method
Serializes the contract to stable JSON.
Implementation
Map<String, Object?> toJson() {
return <String, Object?>{
'schemaVersion': schemaVersion,
'type': documentType,
'contractVersion': contractVersion,
'appId': appId,
'backendBaseUrl': backendBaseUri.toString(),
'healthEndpoint': healthEndpoint,
'smokeTests': smokeTests.map((test) => test.toJson()).toList(),
};
}