AuditConfigDelta.fromJson constructor

AuditConfigDelta.fromJson(
  1. Object? j
)

Implementation

factory AuditConfigDelta.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return AuditConfigDelta(
    action: switch (json['action']) {
      null => AuditConfigDelta_Action.$default,
      Object $1 => AuditConfigDelta_Action.fromJson($1),
    },
    service: switch (json['service']) {
      null => '',
      Object $1 => decodeString($1),
    },
    exemptedMember: switch (json['exemptedMember']) {
      null => '',
      Object $1 => decodeString($1),
    },
    logType: switch (json['logType']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}