m8ty_client_common
Couple of models resp. entities as for example amount may be used across multiple clients
Before you start
Check the documentation of the m8ty_client_common library to get an idea about the available models and their properties.
import all needed libraries
import 'package:dio/dio.dart';
import 'package:m8ty_client_common/m8ty_client_common.dart';
import 'package:built_collection/built_collection.dart';
How to perform different tasks
Here some examples how the dart client can be used
Create amount model
ModelHelperCommon().createAmount(
value: 10.20,
currency: IsoCurrencyEnumModel.CHF,
);
ModelHelperCommon().createAmount(
value: 10.20,
currency: IsoCurrencyEnumModel.valueOf("CHF"),
);
Last modified: 02 January 2025