fromJson static method

Integration fromJson(
  1. Map<String, dynamic> json
)

Implementation

static Integration fromJson(Map<String, dynamic> json) {
  return Integration(
    id: json['id'],
    name: json['name'],
    type: json['type'],
    enabled: json['enabled'],
    syncing: json['syncing'],
    roleId: json['role_id'],
    enabledEmoticons: json['enabled_emoticons'],
    expireBehaviour: json['expire_behaviour'],
    expireGracePeriod: json['expire_grace_period'],
    user: User.fromJson(json['user']),
    account: Account.fromJson(json['account']),
    syncedAt: json['synced_at'],
    subscriberCount: json['subscriber_count'],
    revoked: json['revoked'],
    application: IntegrationApplication.fromJson(json['application']),
  );
}