decode static method

SubscriptionPeriod decode(
  1. Object result
)

Implementation

static SubscriptionPeriod decode(Object result) {
  result as List<Object?>;
  return SubscriptionPeriod(
    years: result[0]! as int,
    months: result[1]! as int,
    days: result[2]! as int,
  );
}