-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17]APIの実装周り修正 #24
base: dev-akidon
Are you sure you want to change the base?
[17]APIの実装周り修正 #24
Conversation
@@ -0,0 +1,17 @@ | |||
import 'package:freezed_annotation/freezed_annotation.dart'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@freezed | ||
class PrItems with _$PrItems{ | ||
const factory PrItems({ | ||
required String prItems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/tokudai0000/tokumemo_resource/blob/main/api/v1/ad_items.json
id
clientName
imageUrlStr
targetUrlStr
imageDescription
が必要そう
const factory CurrentTermVersion({required String currentTermVersion})= _CurrentTermVersion; | ||
// json形式で受け取るためのコードを生成するために記述 | ||
factory CurrentTermVersion.fromJson(Map<String,dynamic> json)=>_$CurrentTermVersionFromJson(json); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,13 @@ | |||
// ignore: file_names |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://zenn.dev/koji_1009/articles/e769febac0a8c5 .g.dartや.freezed.dartはGitにあげてよさそうやね |
Issues
Closes #17
概要
API関連を実装
説明(懸念点や注意点)
git fetchの際は
flutter pub run build_runnner build
でクラスを実装する必要あり
キャプチャ