Account.fromDto constructor

Account.fromDto(
  1. Account dto
)

Implementation

factory Account.fromDto(api.Account dto) => Account(
      wallet: dto.wallet,
      email: dto.email,
      devices: dto.devices.map((e) => Device.fromDto(e)).toList(growable: false),
      customId: dto.customId,
      verifyTime: dto.verifyTime.hasNanos() ? dto.verifyTime.toDateTime() : null,
      disableTime: dto.disableTime.hasNanos() ? dto.disableTime.toDateTime() : null,
      user: User.fromDto(dto.user),
    );