```dart
import 'dart:typed_data';

Future<void> postTodo() async {
  try {
    final options = RestOptions(
        path: '/todo',
        body: Uint8List.fromList('{\'name\':\'Mow the lawn\'}'.codeUnits)
    );
    final restOperation = Amplify.API.post(
        restOptions: options
    );
    final response = await restOperation.response;
    print('POST call succeeded');
    print(response.body);
  } on ApiException catch (e) {
    print('POST call failed: $e');
  }
}
```