getDomains method
Returns supported domains. Returns: List of supported domains.
Implementation
Future<List<Domain>> getDomains() async {
var result = await _client.send('Schema.getDomains');
return (result['domains'] as List)
.map((e) => Domain.fromJson(e as Map<String, dynamic>))
.toList();
}