getMigration method
GET /migrations/:id
Returns a Migration
with the given id.
Implementation
Future<Migration> getMigration(String id) async {
final url = Uri.https(_baseUrl, '/migrations/$id');
final response = await _httpClient.get(url);
final json = jsonDecode(response.body) as Map<String, dynamic>;
if (response.statusCode != 200) {
throw ScryfallException.fromJson(json);
}
return Migration.fromJson(json);
}