AccountUser.fromJson constructor

AccountUser.fromJson(
  1. Map json_
)

Implementation

AccountUser.fromJson(core.Map json_)
    : this(
        admin:
            json_.containsKey('admin') ? json_['admin'] as core.bool : null,
        emailAddress: json_.containsKey('emailAddress')
            ? json_['emailAddress'] as core.String
            : null,
        orderManager: json_.containsKey('orderManager')
            ? json_['orderManager'] as core.bool
            : null,
        paymentsAnalyst: json_.containsKey('paymentsAnalyst')
            ? json_['paymentsAnalyst'] as core.bool
            : null,
        paymentsManager: json_.containsKey('paymentsManager')
            ? json_['paymentsManager'] as core.bool
            : null,
        reportingManager: json_.containsKey('reportingManager')
            ? json_['reportingManager'] as core.bool
            : null,
      );