Created
March 21, 2022 06:43
-
-
Save dev4jam/7242b401d2b0b4cd746c832719756272 to your computer and use it in GitHub Desktop.
Request body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:freezed_annotation/freezed_annotation.dart'; | |
part 'NetworkRequestBody.freezed.dart'; | |
@freezed | |
class NetworkRequestBody with _$NetworkRequestBody { | |
const factory NetworkRequestBody.empty() = Empty; | |
const factory NetworkRequestBody.json(Map<String, dynamic> data) = Json; | |
const factory NetworkRequestBody.text(String data) = Text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment