toJson method
Simple contact info. Example:
final contact = PaymayaContact(
email:'paymaya@flutter.com',
phone:'0912345689',
);
Implementation
String toJson() => json.encode(toMap());
Simple contact info. Example:
final contact = PaymayaContact(
email:'paymaya@flutter.com',
phone:'0912345689',
);
String toJson() => json.encode(toMap());