```dart
import 'package:amplify_flutter/amplify_flutter.dart';

import 'models/ModelProvider.dart';

Future<void> savePost() async {
  final newPost = Post(
    title: 'New Post being saved',
    rating: 15,
    status: PostStatus.INACTIVE,
  );

  try {
    await Amplify.DataStore.save(newPost);
  } on DataStoreException catch (e) {
    safePrint('Something went wrong saving model: ${e.message}');
  }
}
```
