FunctionSecretGrant.fromJson constructor

FunctionSecretGrant.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FunctionSecretGrant.fromJson(Map<String, Object?> json) =>
    FunctionSecretGrant(
      grantId: json['grantId'] as String,
      target: FunctionSecretGrantTarget.fromJson(
        (json['target'] as Map).cast<String, Object?>(),
      ),
      state: ApiKeyStatus.fromWire(json['state'] as String),
      revision: (json['revision'] as num).toInt(),
      createdAt: json['createdAt'] as String,
      createdBy: FunctionSecretGrantPrincipal.fromJson(
        (json['createdBy'] as Map).cast<String, Object?>(),
      ),
      updatedAt: json['updatedAt'] as String,
      updatedBy: FunctionSecretGrantPrincipal.fromJson(
        (json['updatedBy'] as Map).cast<String, Object?>(),
      ),
    );