Portfolio.fromCBJson constructor

Portfolio.fromCBJson(
  1. Map<String, dynamic> json
)

Creates a Portfolio from a Coinbase JSON object.

Implementation

factory Portfolio.fromCBJson(Map<String, dynamic> json) {
  return Portfolio(
    uuid: json['uuid'],
    name: json['name'],
    type: json['type'],
    deleted: json['deleted'],
  );
}